#include "KeeperMessage.h"

namespace keeper_server {

void KVMessage::do_serlialize_message(nuraft::buffer_serializer &bs) {
  bs.put_str(key);
  bs.put_str(value);
}

void KVMessage::do_deserlialize_message(nuraft::buffer_serializer &bs) {
  key = bs.get_str();
  value = bs.get_str();
}

}  // namespace keeper_server
